<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">
	    <!-- Loading Bootstrap -->
	    <link href="Public/Admin/Flat/dist/css/vendor/bootstrap.min.css" rel="stylesheet">
	    <!-- Loading Flat UI -->
	    <link href="Public/Admin/Flat/dist/css/flat-ui.css" rel="stylesheet">
	    <link href="Public/Admin/Flat/docs/assets/css/demo.css" rel="stylesheet">
	    <link rel="shortcut icon" href="Public/Admin/Flat/img/favicon.ico">
	    <!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
	    <!--[if lt IE 9]>
	      <script src="dist/js/vendor/html5shiv.js"></script>
	      <script src="dist/js/vendor/respond.min.js"></script>
	    <![endif]-->
	</head>
	<body>
		<!--页面导航-->
		<div class="alert alert-success" role="alert">
			分类管理&nbsp;>&nbsp;添加分类
		</div>
		<form action="" method="post">
			<div class="form-group">
				<label for="fid">所属类型</label>
				<select name="fid" class="form-control">
					<option value="">请选择</option>
					{{foreach from="$formData" value="$v"}}
					<option value="{{$v['fid']}}">{{$v['fname']}}</option>
					{{endforeach}}
				</select>
			</div>
			<div class="form-group">
				<label for="cate_name">分类名称</label>
				<input id="cate_name" class="form-control" type="text" placeholder="请输入分类名称" name="cate_name">
			</div>
			<div class="form-group">
				<select name="p_id" class="form-control">
					<!--顶级分类-->
					<option value="0">顶级分类</option>
					{{foreach from="$gcateData" value="$v"}}
					<option value="{{$v['cate_id']}}">{{$v['_name']}}</option>
					{{endforeach}}
				</select>
			</div>
		<div class="form-group">
			<label for="ctitle">分类标题</label>
			<input id="ctitle" class="form-control" type="text" placeholder="请输入分类标题"  name="ctitle">
		</div>
		<div class="form-group">
			<label for="ckeywords">分类关键字</label>
			<textarea name="ckeywords" rows="5" cols=""  class="form-control" placeholder="请输入分类关键字"></textarea>
		</div>
		<div class="form-group">
			<label for="cdes">分类描述</label>
			<textarea name="cdes" rows="5" cols=""  class="form-control" placeholder="请输入分类描述"></textarea>
		</div>
			<div class="form-group">
				<label for="sort_order">分类排序</label>
				<input id="sort_order" class="form-control" type="text" name="sort_order" value="100">
			</div>
			<input type="hidden" name="form_fid" value="$_GET['fid']" />
			<button class="btn btn-primary btn-block" type="submit"> 确定 </button>
		</form>
	</body>
</html>
